package com.qingge.springboot.service.impl;

import com.qingge.springboot.entity.PaperQuestion;
import com.qingge.springboot.entity.Question;
import com.qingge.springboot.mapper.PagerQuestionMapper;
import com.qingge.springboot.service.IPagerQuestionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 黎俊
 * @since 2022-06-14
 */
@Service
public class PagerQuestionServiceImpl extends ServiceImpl<PagerQuestionMapper, PaperQuestion> implements IPagerQuestionService {


    @Resource
    private PagerQuestionMapper pagerQuestionMapper;
    @Override
    public List<Question> selectQuestions(Integer paperId) {
        return pagerQuestionMapper.selectQuestions(paperId);
    }
}
